<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>


<html:form action="/message">
<html:hidden property="id"/>
<html:hidden property="mode" value="save"/>
<table class="text" >
	<tr>
		<td align=right>
		<b>Subject:</b>
		</td>
		<td>
		<html:text size="60" property="subject" styleClass="text"/>				
		<font color="red"><html:errors property="name"/></font>
		</td>
	</tr>
	<tr>
		<td align=right>
		<b>Body:</b>
		</td>
		<td>
		<html:textarea property="body" styleClass="text" rows="10" cols="70" />				
		</td>
	</tr>
	<tr>
		<td align=right>
		<b>Text Style:</b>
		</td>
		<td>
		<html:select property="txt" styleClass="text">
			<option value="true">Formatted Text</option>
			<option value="false">HTML</option>
		</html:select>
		</td>
	</tr>
	<tr>
		<td colspan=2>
			<html:submit styleClass="buton" property="save">
			  <logic:notEqual name="editMessageForm" property="id" value="0">
			  Submit Changes
			  </logic:notEqual>
			  <logic:equal name="editMessageForm" property="id" value="0">
			  Add This Message
			  </logic:equal>
			</html:submit>
			<p>	
		</td>
	</tr>
</html:form>